﻿using MengCC.Core.IO;
using MengCC.Core.Plugins;
using MengCC.Core.Projects;
using MengCC.Plugin.SDK;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MengCC.Core.Works
{
    public class PluginContext 
    {
        

        public string Workspace { get; set; }
        public string Config { get; set; }

        public override string ToString()
        {
            return string.Join(" ", typeof(PluginContext).GetProperties().Select(p => $"-{p.Name.ToLower()} {System.Web.HttpUtility.UrlEncode( (p.GetValue(this)??"").ToString())}"));
        }

    }
}
